<template>
  <ant-modal
    modalWidth="900"
    modalHeight="600"
    :visible="open"
    :modal-title="formTitle"
    :adjust-size="true"
    @cancel="cancel"
  >
    <a-form-model ref="form" :model="form" :rules="rules" slot="content" layout="vertical">
      <a-row :gutter="32">
        <a-col :span="12">
          <a-form-model-item label="计划编号" prop="processNumber">
            <a-input v-model="form.processNumber" placeholder="计划编号自动生成" :disabled="true"/>
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="计划名称" prop="planName">
            <a-input v-model="form.planName" placeholder="请输入计划名称" />
          </a-form-model-item>
        </a-col>
        <a-col :span="24">
          <a-form-model-item label="备注" prop="remark">
            <a-input v-model="form.remark" placeholder="请输入备注"/>
          </a-form-model-item>
        </a-col>
      </a-row>
      <process-index
        ref="processIndex"
        :dataSource="form.processList || []"
      />
    </a-form-model>
    <template slot="footer">
      <a-button :disabled="disabled" @click="cancel">
        取消
      </a-button>
      <a-button type="primary" :disabled="disabled" @click="submitForm(true)">
        保存
      </a-button>
    </template>
  </ant-modal>
</template>
<script>
import BizProcessPlanAddForm from './BizProcessPlanForm'
export default {
  ...BizProcessPlanAddForm
}
</script>
